package router

import (
	"github.com/gin-gonic/gin"
	"social-contact/internal/api"
)

func UserRouter(c *gin.RouterGroup) {
	user := c.Group("user")
	{
		user.POST("register", api.Register)
		user.POST("login", api.Login)
		//user.Use(pkg.JWTAuth("2209A"))
		user.POST("release", api.Release)
		user.GET("list", api.List)
		user.GET("chat", api.Chat)
		user.POST("subscribe", api.Subscribe)
		user.POST("create", api.Create)
		user.POST("administration", api.Administration)
		user.POST("del", api.Del)
	}
}
